<template>
  <div>
    <p>当前的减法值是：{{ $store.state.count }}</p>
    <p>当前的减法值是：{{ $store.getters.showNum }}</p>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState(["count"]),
  },
};
</script>